package com.repair.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel(value = "修改维修材料参数对象")
public class RepairStoreUpdateForm {
    @ApiModelProperty("修改的维修材料id")
    @NotNull(message = "修改的维修材料id不能为空")
    @Min(value = 0,message = "修改的维修材料id不能小于0")
    private Integer id;
    @ApiModelProperty("材料库存")
    @NotNull(message = "材料库存不能为空")
    @Min(value = 0,message = "材料库存不能小于0")
    private Integer materialNum;
    @ApiModelProperty("备注")
    private String remarks;
}
